import request from "@/utils/request";

// 查询补发师门店列表
export function listHairFixShop(query) {
  return request({
    url: "/business/hairFixShop/list",
    method: "get",
    params: query,
  });
}

export function listHairFixShopBooked(query) {
  return request({
    url: "/business/hairTeacherSubscribe/boardList",
    method: "get",
    params: query,
  });
}

// 查询补发师门店详细
export function getHairFixShop(id) {
  return request({
    url: "/business/hairFixShop/" + id,
    method: "get",
  });
}

// 新增补发师门店
export function addHairFixShop(data) {
  return request({
    url: "/business/hairFixShop",
    method: "post",
    data: data,
  });
}

// 修改补发师门店
export function updateHairFixShop(data) {
  return request({
    url: "/business/hairFixShop",
    method: "put",
    data: data,
  });
}

// 删除补发师门店
export function delHairFixShop(id) {
  return request({
    url: "/business/hairFixShop/" + id,
    method: "delete",
  });
}

// 获得省列表
export function getProvince() {
  return request({
    url: "/business/systemCity/provinceList",
    method: "get",
  });
}

// 同步门店数据
export  function  updateBokaShop(){
  return request({
    url: "/business/hairFixShop/synBokaData",
    method: "get",
  });
}
